|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.PrepaidAccountModel
public class PrepaidAccountModel
This Java class represents a prepaid account defined in a subscriber account
stored in customer master data owned by a service provider;
A prepaid account is a balance defined by a minimal value (empty limit).
The balance is usually greater than zero and must not be less than zero; however, if overspending is granted to the user, the balance can be less than zero.
Prepaid account balances can be connected to expiration alerts.
An alert is a notification sent to a dedicated system
when the balance amount of a prepaid account is less than or equal to the threshold value of an alert.
SubscriberAccountModel,
AmountAlertModel,
ExpirationAlertModel,
NotificationThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="prepaidAccount">
<xs:complexType>
<xs:sequence>
<xs:element ref="amountAlert" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="expirationAlert" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="amount" type="xs:string" use="required"/>
<xs:attribute name="currency" type="xs:string" use="required"/>
<xs:attribute name="emptyLimit" type="xs:string" use="required"/>
<xs:attribute name="overrunAccountCode" type="xs:string"/>
<xs:attribute name="overrunAccountType" type="OverrunAccountBalanceType" use="optional" />
<xs:attribute name="blockedStateDate" type="xs:dateTime"/>
<xs:attribute name="lockedStateDate" type="xs:dateTime"/>
<xs:attribute name="closedStateDate" type="xs:dateTime"/>
<xs:attribute name="clientId" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="OverrunAccountBalanceType">
<xs:restriction base="xs:string">
<xs:enumeration value="prepaid"/>
<xs:enumeration value="external"/>
<xs:enumeration value="undefined"/>
</xs:restriction>
</xs:simpleType>
| Constructor Summary | |
|---|---|
PrepaidAccountModel()
Builds an empty prepaid account. |
|
PrepaidAccountModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal emptyLimit,
java.util.Date blockedStateDate,
java.util.Date lockedStateDate,
java.util.Date closedStateDate,
java.lang.String overrunAccountCode,
AccountType overrunAccountType)
Builds a prepaid account. |
|
PrepaidAccountModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal emptyLimit,
java.util.Date blockedStateDate,
java.util.Date lockedStateDate,
java.util.Date closedStateDate,
java.lang.String overrunAccountCode,
AccountType overrunAccountType,
java.lang.String clientId)
Builds a prepaid account. |
|
| Method Summary | |
|---|---|
void |
addAmountAlert(AmountAlertModel alert)
Adds a AmountAlertModel to this prepaid account amount alerts list. |
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addExpirationAlert(ExpirationAlertModel alert)
Adds a ExpirationAlertModel to this prepaid account expiration alerts list. |
java.math.BigDecimal |
getAmount()
Gets the amount of the prepaid account. |
AmountAlertModel |
getAmountAlert(int index)
Gets AmountAlertModel at given index to this prepaid account amount alerts list.. |
int |
getAmountAlertCount()
Gets the prepaid account amount alerts list size. |
java.util.Iterator<AmountAlertModel> |
getAmountAlertIterator()
Gets this prepaid account amount alerts list iterator. |
AmountAlertModel[] |
getAmountAlerts()
Gets the prepaid account amount alerts list. |
java.util.Date |
getBlockedStateDate()
Gets the blocked state date of the prepaid account. |
java.lang.String |
getClientId()
Gets the client identifier of the prepaid account. |
java.util.Date |
getClosedStateDate()
Gets the closed state date of the prepaid account. |
java.lang.String |
getCode()
Gets the code of the prepaid account. |
RatingContextDescription |
getContext(ContextualNode child)
|
java.lang.String |
getCurrencyCode()
Gets the currency code of the prepaid account. |
java.lang.String |
getDescription()
Gets the description of the prepaid account. |
java.math.BigDecimal |
getEmptyLimit()
Gets the empty limit amount of the prepaid account. |
ExpirationAlertModel |
getExpirationAlert(int index)
Gets ExpirationAlertModel at given index to this prepaid account expiration alerts list.. |
int |
getExpirationAlertCount()
Gets the prepaid account expiration alerts list size. |
java.util.Iterator<ExpirationAlertModel> |
getExpirationAlertIterator()
Gets this prepaid account expiration alerts list iterator. |
ExpirationAlertModel[] |
getExpirationAlerts()
Gets the prepaid account expiration alerts list. |
java.util.Date |
getLockedStateDate()
Gets the locked state date of the prepaid account. |
java.lang.String |
getOverrunAccountCode()
Gets the overrun account code of the prepaid account. |
AccountType |
getOverrunAccountType()
Gets the type of the overrun account. |
RatingContextDescription |
inheritedContext()
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
boolean |
removeAmountAlert(AmountAlertModel alert)
Removes a AmountAlertModel to this prepaid account amount alerts list. |
AmountAlertModel |
removeAmountAlert(int index)
Removes a AmountAlertModel at given index to this prepaid account amount alerts list. |
boolean |
removeExpirationAlert(ExpirationAlertModel alert)
Removes a ExpirationAlertModel to this prepaid account expiration alerts list. |
ExpirationAlertModel |
removeExpirationAlert(int index)
Removes a ExpirationAlertModel at given index to this prepaid account expiration alerts list. |
void |
setAmount(java.math.BigDecimal amount)
Sets the amount of the prepaid account. |
void |
setAmountAlerts(AmountAlertModel[] alerts)
Sets the prepaid account amount alerts list. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setBlockedStateDate(java.util.Date blockedStateDate)
Sets the blocked state date of the prepaid account. |
void |
setClientId(java.lang.String clientId)
Sets the client identifier of the prepaid account. |
void |
setClosedStateDate(java.util.Date closedStateDate)
Sets the closed state date of the prepaid account. |
void |
setCode(java.lang.String code)
Sets the code of the prepaid account. |
void |
setCurrencyCode(java.lang.String currencyCode)
Sets the currency code of the prepaid account. |
void |
setDescription(java.lang.String description)
Sets the description of the prepaid account. |
void |
setEmptyLimit(java.math.BigDecimal emptyLimit)
Sets the empty limit amount of the prepaid account. |
void |
setExpirationAlerts(ExpirationAlertModel[] alerts)
Sets the prepaid account expiration alerts list. |
void |
setLockedStateDate(java.util.Date lockedStateDate)
Sets the locked state date of the prepaid account. |
void |
setOverrunAccountCode(java.lang.String overrunAccountCode)
Sets the overrun account code of the prepaid account. |
void |
setOverrunAccountType(AccountType overrunAccountType)
Sets the type of the overrun account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrepaidAccountModel()
public PrepaidAccountModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal emptyLimit,
java.util.Date blockedStateDate,
java.util.Date lockedStateDate,
java.util.Date closedStateDate,
java.lang.String overrunAccountCode,
AccountType overrunAccountType)
code - The code of the prepaid accountdescription - The description of the prepaid accountamount - The amount of the prepaid accountcurrency - The currency of the prepaid accountemptyLimit - The empty limit amount of the prepaid accountblockedStateDate - The blocked state date of the prepaid accountlockedStateDate - The locked state date of the prepaid accountclosedStateDate - The closed state date of the prepaid accountoverrunAccountCode - The overrun account code of the prepaid accountoverrunAccountType - The type of the account involved in the overrun of this account
public PrepaidAccountModel(java.lang.String code,
java.lang.String description,
java.math.BigDecimal amount,
java.lang.String currency,
java.math.BigDecimal emptyLimit,
java.util.Date blockedStateDate,
java.util.Date lockedStateDate,
java.util.Date closedStateDate,
java.lang.String overrunAccountCode,
AccountType overrunAccountType,
java.lang.String clientId)
code - the code of the prepaid account.description - the description of the prepaid account.amount - the amount of the prepaid account.currency - the currency of the prepaid account.emptyLimit - the empty limit amount of the prepaid account.blockedStateDate - the blocked state date of the prepaid account.lockedStateDate - the locked state date of the prepaid account.closedStateDate - the closed state date of the prepaid account.overrunAccountCode - the overrun account code of the prepaid account.clientId - the client identifier of the prepaid account.| Method Detail |
|---|
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of the prepaid accountpublic java.math.BigDecimal getAmount()
public void setAmount(java.math.BigDecimal amount)
amount - The amount of the prepaid accountpublic java.util.Date getBlockedStateDate()
public void setBlockedStateDate(java.util.Date blockedStateDate)
blockedStateDate - The blocked state date of the prepaid accountpublic java.util.Date getClosedStateDate()
public void setClosedStateDate(java.util.Date closedStateDate)
closedStateDate - The closed state date of the prepaid accountpublic java.lang.String getCode()
public void setCode(java.lang.String code)
code - The code of the prepaid accountpublic java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String currencyCode)
currencyCode - The currency code of the prepaid accountpublic java.math.BigDecimal getEmptyLimit()
public void setEmptyLimit(java.math.BigDecimal emptyLimit)
emptyLimit - The empty limit amount of the prepaid accountpublic java.util.Date getLockedStateDate()
public void setLockedStateDate(java.util.Date lockedStateDate)
lockedStateDate - The locked state date of the prepaid accountpublic java.lang.String getOverrunAccountCode()
public void setOverrunAccountCode(java.lang.String overrunAccountCode)
overrunAccountCode - The overrun account code of the prepaid accountpublic AccountType getOverrunAccountType()
public void setOverrunAccountType(AccountType overrunAccountType)
overrunAccountType - The type of the overrun account codepublic java.lang.String getClientId()
public void setClientId(java.lang.String clientId)
clientId - The client identifier of the prepaid accountpublic void addAmountAlert(AmountAlertModel alert)
AmountAlertModel to this prepaid account amount alerts list.
alert - The AmountAlertModel to be addedpublic boolean removeAmountAlert(AmountAlertModel alert)
AmountAlertModel to this prepaid account amount alerts list.
alert - The AmountAlertModel to be removed
true if the alert is successfully removed, false otherwisepublic AmountAlertModel removeAmountAlert(int index)
AmountAlertModel at given index to this prepaid account amount alerts list.
index - The index of the AmountAlertModel to be removed
AmountAlertModelpublic int getAmountAlertCount()
public AmountAlertModel getAmountAlert(int index)
AmountAlertModel at given index to this prepaid account amount alerts list..
index - The index of the AmountAlertModel to be retrieved
AmountAlertModel at given index.public java.util.Iterator<AmountAlertModel> getAmountAlertIterator()
public AmountAlertModel[] getAmountAlerts()
public void setAmountAlerts(AmountAlertModel[] alerts)
alerts - The prepaid account amount alerts listpublic void addExpirationAlert(ExpirationAlertModel alert)
ExpirationAlertModel to this prepaid account expiration alerts list.
alert - The ExpirationAlertModel to be addedpublic boolean removeExpirationAlert(ExpirationAlertModel alert)
ExpirationAlertModel to this prepaid account expiration alerts list.
alert - The ExpirationAlertModel to be removed
true if the alert is successfully removed, false otherwisepublic ExpirationAlertModel removeExpirationAlert(int index)
ExpirationAlertModel at given index to this prepaid account expiration alerts list.
index - The index of the ExpirationAlertModel to be removed
ExpirationAlertModelpublic int getExpirationAlertCount()
public ExpirationAlertModel getExpirationAlert(int index)
ExpirationAlertModel at given index to this prepaid account expiration alerts list..
index - The index of the ExpirationAlertModel to be retrieved
ExpirationAlertModel at given indexpublic java.util.Iterator<ExpirationAlertModel> getExpirationAlertIterator()
public ExpirationAlertModel[] getExpirationAlerts()
public void setExpirationAlerts(ExpirationAlertModel[] alerts)
alerts - The prepaid expiration amount alerts listpublic RatingContextDescription getContext(ContextualNode child)
public RatingContextDescription inheritedContext()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||